package com.wlz.consumer.controller;

import com.wlz.api.DemoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wlz
 * @date 2022-07-12  9:17 下午
 */
@RestController
public class HelloController {

//    @Autowired
    @Reference(version = "default")
    private DemoService demoService;

    @RequestMapping("/consumer/user/say")
    public String sayHello() {
        String result = demoService.sayHello("hello wlz ...");
        return result;
    }

}
